mod_perl conf test
am 09.04.2009 05:05:56 von sandhya pawar
--00151748e70ae0b3f504671686a9
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
I installed and configured mod_perl2.0004 successfully.
To test that, I wrote one Hello.pm prg as per document and saved it
C:\Perl\site\lib\Apache2\
package Apache2::Hello;
use strict;
use Apache2::RequestRec (); # for $r->content_type
use Apache2::RequestIO (); # for $r->puts
use Apache2::Const -compile => ':common';
sub handler {
my $r = shift;
my $time = scalar localtime();
my $package = __PACKAGE__;
$r->content_type('text/html');
$r->puts(<<"END");
Hello
Hello from $package! The time is $time.
END
return Apache2::Const::OK;
}
1;
and put the following lines in C:\Program Files\Apache Software
Foundation\Apache2.2\conf\httpd.conf
PerlModule Apache2::Hello
SetHandler modperl
PerlResponseHandler Apache2::Hello
but http://localhost/hellp It gives HTTP 404 Not Found error.
--00151748e70ae0b3f504671686a9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I installed and configured mod_perl2.0004 successfully.
To test that, I wrote one Hello.pm prg as per document and saved it C:=
\Perl\site\lib\Apache2\
=A0
=A0package Apache2::Hello;
=A0 use strict;
"> use Apache2::RequestRec (); # for $r->content_type
use Apache2::RequestIO (); # for $r->puts
use Apache2::Const -compile =3D> ':common';
"pre-section"> sub handler {
my $r =3D shift;
my $time =3D scalar localtime();
my $package =3D __PACKAGE__;
$r->content_type('text/html');
$r->puts(<<"END");
<HTML><BODY>
<H3>Hello</H3>
Hello from <B>$package</B>! The time is $time.
</BODY></HTML>
END
return Apache2::Const::OK;
}
1;
an=
d put the following lines in C:\Program Files\Apache Software Foundation\Ap=
ache2.2\conf\httpd.conf
PerlModule Apache2:=
:Hello
<Location /hello>
SetHandler modperl
PerlResponseHandler Apache2::Hello
</Location>
=A0
pre-section">but
http://localhost/hellp<=
/a> It gives HTTP 404 Not Found error.=A0<=
/pre>
--00151748e70ae0b3f504671686a9--
Re: mod_perl conf test
am 09.04.2009 06:42:46 von Jeff Soules
> and put the following lines in C:\Program Files\Apache Software
> Foundation\Apache2.2\conf\httpd.conf
>
> PerlModule Apache2::Hello
>
> SetHandler modperl
> PerlResponseHandler Apache2::Hello
>
>
>
>
> but http://localhost/hellp It gives HTTP 404 Not Found error.
Just to take care of the obvious here -- you pointed the browser to
hellp, not hello? Or is that just a typo in your email?
Re: mod_perl conf test
am 09.04.2009 09:53:03 von sandhya pawar
--000e0cd29b32b2ff3504671a89d0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
It is the typo in my email..
On Thu, Apr 9, 2009 at 10:12 AM, Jeff Soules wrote:
> > and put the following lines in C:\Program Files\Apache Software
> > Foundation\Apache2.2\conf\httpd.conf
> >
> > PerlModule Apache2::Hello
> >
> > SetHandler modperl
> > PerlResponseHandler Apache2::Hello
> >
> >
> >
> >
> > but http://localhost/hellp It gives HTTP 404 Not Found error.
>
> Just to take care of the obvious here -- you pointed the browser to
> hellp, not hello? Or is that just a typo in your email?
>
--000e0cd29b32b2ff3504671a89d0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
It is the typo in my email..
=A0
On Thu, Apr 9, 2009 at 10:12 AM, Jeff Soules
an dir=3D"ltr"><=
> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
> and put the following lines in C:\Program Files\Apac=
he Software
> Foundation\Apache2.2\conf\httpd.conf
>
> Pe=
rlModule Apache2::Hello
> =A0 <Location /hello>
> =A0 =A0=
SetHandler modperl
> =A0 =A0 PerlResponseHandler Apache2::Hello
> =A0 </Location&g=
t;
>
>
>
> but
arget=3D"_blank">http://localhost/hellp It gives HTTP 404 Not Found err=
or.
Just to take care of the obvious here -- you pointed the browser =
to
hellp, not hello? =A0Or is that just a typo in your email?
quote>
--000e0cd29b32b2ff3504671a89d0--
Re: mod_perl conf test
am 10.04.2009 19:27:18 von Randy Kobes
On Thu, Apr 9, 2009 at 2:53 AM, sandhya pawar w=
rote:
> On Thu, Apr 9, 2009 at 10:12 AM, Jeff Soules wrote:
>>
>> > and put the following lines in C:\Program Files\Apache Software
>> > Foundation\Apache2.2\conf\httpd.conf
>> >
>> > PerlModule Apache2::Hello
>> > =A0
>> > =A0 =A0 SetHandler modperl
>> > =A0 =A0 PerlResponseHandler Apache2::Hello
>> > =A0
>> >
>> > but http://localhost/hellp It gives HTTP 404 Not Found error.
>>
>> Just to take care of the obvious here -- you pointed the browser to
>> hellp, not hello? =A0Or is that just a typo in your email?
>
> It is the typo in my email..
One other small thing to check - does clearing the browser's cache
help? Also, do other static pages work OK?
--=20
best regards,
Randy
Re: mod_perl conf test
am 13.04.2009 18:57:36 von sandhya pawar
--000e0cd147ea812b950467729c83
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
File does not exist: C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/hello.pm
It gives the above error?
On Fri, Apr 10, 2009 at 10:57 PM, Randy Kobes wrote:
> On Thu, Apr 9, 2009 at 2:53 AM, sandhya pawar
> wrote:
>
> > On Thu, Apr 9, 2009 at 10:12 AM, Jeff Soules wrote:
> >>
> >> > and put the following lines in C:\Program Files\Apache Software
> >> > Foundation\Apache2.2\conf\httpd.conf
> >> >
> >> > PerlModule Apache2::Hello
> >> >
> >> > SetHandler modperl
> >> > PerlResponseHandler Apache2::Hello
> >> >
> >> >
> >> > but http://localhost/hellp It gives HTTP 404 Not Found error.
> >>
> >> Just to take care of the obvious here -- you pointed the browser to
> >> hellp, not hello? Or is that just a typo in your email?
> >
> > It is the typo in my email..
>
> One other small thing to check - does clearing the browser's cache
> help? Also, do other static pages work OK?
>
> --
> best regards,
> Randy
>
--000e0cd147ea812b950467729c83
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
File does not exist: C:/Program Files/Apache Software Foundation/Apach=
e2.2/htdocs/
It gives the above =
error?
=A0
=A0
On Fri, Apr 10, 2009 at 10:57 PM, Randy Kobes
pan dir=3D"ltr"><
randy.kobes@gm=
ail.com> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
On Thu, Apr 9, 2009 at 2:53 AM, sandhya pawar <
=3D"mailto:sandhya.pawar03@gmail.com">sandhya.pawar03@gmail. com> wro=
te:
> On Thu, Apr 9, 2009 at 10:12 AM, Jeff Soules <
"mailto:soules@gmail.com">soules@gmail.com> wrote:
>>
>> > and put the following lines in C:\Program Files\A=
pache Software
>> > Foundation\Apache2.2\conf\httpd.conf
>=
;> >
>> > PerlModule Apache2::Hello
>> > =A0 =
<Location /hello>
>> > =A0 =A0 SetHandler modperl
>> > =A0 =A0 PerlRespo=
nseHandler Apache2::Hello
>> > =A0 </Location>
>>=
; >
>> > but
lank">http://localhost/hellp It gives HTTP 404 Not Found error.
>>
>> Just to take care of the obvious here -- you pointed t=
he browser to
>> hellp, not hello? =A0Or is that just a typo in yo=
ur email?
>
> It is the typo in my email..
One oth=
er small thing to check - does clearing the browser's cache
help? Also, do other static pages work OK?
--
best regards,
ont color=3D"#888888">Randy
--000e0cd147ea812b950467729c83--
Re: mod_perl conf test
am 13.04.2009 19:03:26 von Randy Kobes
On Mon, Apr 13, 2009 at 11:57 AM, sandhya pawar
wrote:
> File does not exist: C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs/hello.pm
> It gives the above error?
Hello.pm (containing Apache2::Hello) should be placed within your Perl
directory (eg, C:\Perl\site\lib\Apache2\Hello.pm, if your top-level
Perl directory is C:\Perl).
--
best regards,
Randy
Re: mod_perl conf test
am 14.04.2009 07:28:49 von sandhya pawar
--000e0cd14d6c0b342e04677d1bfc
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
I have placed that files in C:\Perl\site\lib\Apache2\Hello.pm
but still it gives the error..
On Mon, Apr 13, 2009 at 10:33 PM, Randy Kobes wrote:
> On Mon, Apr 13, 2009 at 11:57 AM, sandhya pawar
> wrote:
> > File does not exist: C:/Program Files/Apache Software
> > Foundation/Apache2.2/htdocs/hello.pm
> > It gives the above error?
>
> Hello.pm (containing Apache2::Hello) should be placed within your Perl
> directory (eg, C:\Perl\site\lib\Apache2\Hello.pm, if your top-level
> Perl directory is C:\Perl).
>
> --
> best regards,
> Randy
>
--000e0cd14d6c0b342e04677d1bfc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I have placed that files in C:\Perl\site\lib\Apache2\Hello.pm
but still it gives the error..
On Mon, Apr 13, 2009 at 10:33 PM, Randy Kobes
pan dir=3D"ltr"><
randy.kobes@gm=
ail.com> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Mon, Apr 13, 2009 at 11:57 AM=
, sandhya pawar
> File does not exist: C:/Program Files/Apache Softwar=
e
> Foundation/Apache2.2/htdocs/
=3D"_blank">hello.pm
> It gives the above error?
Hel=
lo.pm (containing Apache2::Hello) should be placed within your Perl
directory (eg, C:\Perl\site\lib\Apache2\Hello.pm, if your top-level
Perl=
directory is C:\Perl).
--
best regards,
8">Randy
--000e0cd14d6c0b342e04677d1bfc--